gdk: Always get shadow width via GdkToplevelSize
authorJonas Ådahl <jadahl@gmail.com>
Wed, 2 Dec 2020 13:58:45 +0000 (14:58 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 08:46:39 +0000 (09:46 +0100)
commit3f96d4b6dae56e5e3fc27a4d7b9a8bd90c9a802c
tree6b9bf290e3518a9c87e1a9639cd11e7454c02fad
parent0dcd4a5bdb21af20fc829c7d0a2e9f11a9e92a57
gdk: Always get shadow width via GdkToplevelSize

This removes the gdk_surface_set_shadow_width() function and related
vfuncs. The point here is that the shadow width and surface size can now
be communicated to GDK atomically, meaning it's possible to avoid
intermediate stages where the surface size includes the shadow, but
without the shadow width set, or the other way around.
14 files changed:
docs/reference/gdk/gdk4-sections.txt
gdk/broadway/gdksurface-broadway.c
gdk/broadway/gdksurface-broadway.h
gdk/gdksurface.c
gdk/gdksurface.h
gdk/gdksurfaceprivate.h
gdk/macos/gdkmacospopupsurface.c
gdk/macos/gdkmacossurface-private.h
gdk/macos/gdkmacossurface.c
gdk/macos/gdkmacostoplevelsurface.c
gdk/wayland/gdksurface-wayland.c
gdk/win32/gdksurface-win32.c
gdk/x11/gdksurface-x11.c
gtk/gtkwindow.c